from flask import Flask, url_for
from flask import render_template,request
app = Flask(__name__)

@app.route('/')
def hello_world():
    return render_template('index.html')

@app.route('/entry')
def entry():
    return render_template('entry.html')

@app.route('/introduction')
def introduction():
    return render_template('introduction.html')

@app.route('/contact')
def contact():
    return render_template('contact.html')

@app.route('/smart_app')
def smart_app():
    return render_template('app.html')

@app.route('/search',methods=['POST'])
def search():
    print(request.form['inputcolor_up'])
    print(request.form['inputcolor_down'])
    return render_template('app.html',
                           bgcolor_up = request.form['inputcolor_up'],
                           bgcolor_down = request.form['inputcolor_down'],)


if __name__ == "__main__":
    app.run()